import request from '@/utils/request'

export async function getOauthUrl(params: any) {
  return request({
    url: '/getoauthurl',
    method: 'get',
    params,
  })
}

export async function getQrOauthUrl(params: any) {
  return request({
    url: '/getqroauthurl',
    method: 'get',
    params,
  })
}

export async function login(params: any) {
  return request({
    url: '/login',
    method: 'get',
    params,
  })
}

export async function socialLogin(params: any) {
  return request({
    url: '/socialLogin',
    method: 'get',
    params,
  })
}

export async function socialQrLogin(params: any) {
  return request({
    url: '/socialQrLogin',
    method: 'get',
    params,
  })
}

export function getUserInfo() {
  return request({
    url: '/userInfo',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'get',
  })
}
